<extend name="CommonAdmin:base" />

<block name="script">
<script>

$(function() {
   $("input:button").button();
});
function back() {
    var url = "__URL__/index";
    window.location = url;
}
</script>
</block>

<block name="main-in">
<div>
<form action="__URL__/save" method="post">
<div>
<input type="hidden" name="id" value="{$vo.id}" />
</div>
    <table>
        <tr>
            <td class="required">公司</td>
            <td>
                <select name="company_id">
                    <volist name="companyList" id="data">
                    <option value="{$data.id}" <if condition="$data['id'] eq $vo['company_id']" >selected="selected"</if> >{$data.company_name}</option>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <td class="required">商品名称</td>
            <td>
                <input type="text" name="goodsname" value="{$vo.goodsname}" />
            </td>
        </tr>
        <tr>
            <td>类别</td>
            <td>
                <select name="sortid">
                    <volist name="sortList" id="dataSort">
                    <option value="{$dataSort.id}">{$dataSort.sortname}</option>
                    </volist>
                </select>
            </td>
        </tr>
        <tr>
            <td>是否在售</td>
            <td>
                <input type="text" name="is_sell" value="{$vo.is_sell}" />
            </td>
        </tr>
        <tr>
            <td>编码</td>
            <td>
                <input type="text" name="code" value="{$vo.code}" />
            </td>
        </tr>
        <tr>
            <td>点击数</td>
            <td>
                <input type="text" name="hits" value="{$vo.hits}" />
            </td>
        </tr>
        <tr>
            <td>是否最好</td>
            <td>
                <input type="text" name="isbest" value="{$vo.isbest}" />
            </td>
        </tr>
        <tr>
            <td>是否新品</td>
            <td>
                <input type="text" name="isnew" value="{$vo.isnew}" />
            </td>
        </tr>
        <tr>
            <td>是否热卖</td>
            <td>
                <input type="text" name="ishot" value="{$vo.ishot}" />
            </td>
        </tr>
        <tr>
            <td>是否特殊</td>
            <td>
                <input type="text" name="isspecial" value="{$vo.isspecial}" />
            </td>
        </tr>
        <tr>
            <td>关键字</td>
            <td>
                <input type="text" name="keywords" value="{$vo.keywords}" />
            </td>
        </tr>
        <tr>
            <td>摘要</td>
            <td>
                <input type="text" name="brief" value="{$vo.brief}" />
            </td>
        </tr>
        <tr>
            <td>内容</td>
            <td>
                <input type="text" name="content" value="{$vo.content}" />
            </td>
        </tr>
        <tr>
            <td>市场价</td>
            <td>
                <input type="text" name="marketprice" value="{$vo.marketprice}" />
            </td>
        </tr>
        <tr>
            <td>在售价</td>
            <td>
                <input type="text" name="shopprice" value="{$vo.shopprice}" />
            </td>
        </tr>
        <tr>
            <td>单位</td>
            <td>
                <input type="text" name="unit" value="{$vo.unit}" />
            </td>
        </tr>
        <tr>
            <td>公开时间</td>
            <td>
                <input type="text" name="publishtime" value="{$vo.publishtime}" />
            </td>
        </tr>
        <tr>
            <td>公开价</td>
            <td>
                <input type="text" name="publishopt" value="{$vo.publishopt}" />
            </td>
        </tr>
        <tr>
            <td>权限</td>
            <td>
                <input type="text" name="alowpower" value="{$vo.alowpower}" />
            </td>
        </tr>
        <tr>
            <td>是否评论</td>
            <td>
                <input type="text" name="iscomment" value="{$vo.iscomment}" />
            </td>
        </tr>
        <tr>
            <td>商品模版</td>
            <td>
                <input type="text" name="goodstpl" value="{$vo.goodstpl}" />
            </td>
        </tr>
        <tr>
            <td colspan=2 align="right">
                <button type="submit">提交</button>
                <button type="button" onclick="back()">返回</button>
            </td>
        </tr>
    </table>
</form>
</div>
</block>